#include "debug.h"
#include <iostream>
#include <QStringList>

namespace CGF
{
  int debug_level = 0;

const Debuger& operator<<(const Debuger& d, const std::string& rhs)
{
  d << rhs.c_str();
  return d;
}

const Debuger& operator<<(const Debuger& d, const QStringList& rhs)
{
        QStringList::ConstIterator i   = rhs.begin();
  const QStringList::ConstIterator end = rhs.end();

  if (i == end)
    return d;

  d << *i++;

  for (; i != end; ++i)
    d << ", " << *i;

  return d;
}

}